const formatEmpty = (value, emptyText = '-') => {
  if (value === null || typeof value === 'undefined' || value === '') {
    return emptyText;
  }

  return value;
};

export default formatEmpty;
